home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / modules / nessus-2.2.8.mo / usr / lib / nessus / plugins / redhat-RHSA-2004-549.nasl < prev    next >
Text File  |  2005-01-14  |  3KB  |  98 lines

  1. #
  2. # (C) Tenable Network Security
  3. #
  4. #
  5. # The text of this plugin is (C) Red Hat Inc.
  6.  
  7. if ( ! defined_func("bn_random") ) exit(0);
  8. if(description)
  9. {
  10.  script_id(15944);
  11.  script_version ("$Revision: 1.4 $");
  12.  if (NASL_LEVEL >= 2200) script_cve_id("CAN-2004-0136", "CAN-2004-0619", "CAN-2004-0685", "CAN-2004-0812", "CAN-2004-0883", "CAN-2004-0949", "CAN-2004-1068", "CAN-2004-1070", "CAN-2004-1071", "CAN-2004-1072", "CAN-2004-1073");
  13.  
  14.  name["english"] = "RHSA-2004-549:   kernel";
  15.  
  16.  script_name(english:name["english"]);
  17.  
  18.  desc["english"] = '
  19.  Updated kernel packages that fix several security issues in Red Hat                         
  20.  Enterprise Linux 3 are now available.                                                       
  21.  
  22.  The Linux kernel handles the basic functions of the operating system.                       
  23.  
  24.  This update includes fixes for several security issues.
  25.  
  26.  All Red Hat Enterprise Linux 3 users are advised to upgrade their                           
  27.  kernels to the packages associated with their machine architectures                         
  28.  and configurations as listed in this erratum.                                               
  29.  
  30. Solution : http://rhn.redhat.com/errata/RHSA-2004-549.html
  31. Risk factor : High';
  32.  
  33.  script_description(english:desc["english"]);
  34.  
  35.  summary["english"] = "Check for the version of the   kernel packages";
  36.  script_summary(english:summary["english"]);
  37.  
  38.  script_category(ACT_GATHER_INFO);
  39.  
  40.  script_copyright(english:"This script is Copyright (C) 2004 Tenable Network Security");
  41.  family["english"] = "Red Hat Local Security Checks";
  42.  script_family(english:family["english"]);
  43.  
  44.  script_dependencies("ssh_get_info.nasl");
  45.  
  46.  script_require_keys("Host/RedHat/rpm-list");
  47.  exit(0);
  48. }
  49.  
  50. include("rpm.inc");
  51. if ( rpm_check( reference:"kernel-2.4.21-20.0.1.EL", release:"RHEL3") )
  52. {
  53.  security_hole(0);
  54.  exit(0);
  55. }
  56. if ( rpm_check( reference:"kernel-BOOT-2.4.21-20.0.1.EL", release:"RHEL3") )
  57. {
  58.  security_hole(0);
  59.  exit(0);
  60. }
  61. if ( rpm_check( reference:"kernel-doc-2.4.21-20.0.1.EL", release:"RHEL3") )
  62. {
  63.  security_hole(0);
  64.  exit(0);
  65. }
  66. if ( rpm_check( reference:"kernel-hugemem-2.4.21-20.0.1.EL", release:"RHEL3") )
  67. {
  68.  security_hole(0);
  69.  exit(0);
  70. }
  71. if ( rpm_check( reference:"kernel-smp-2.4.21-20.0.1.EL", release:"RHEL3") )
  72. {
  73.  security_hole(0);
  74.  exit(0);
  75. }
  76. if ( rpm_check( reference:"kernel-source-2.4.21-20.0.1.EL", release:"RHEL3") )
  77. {
  78.  security_hole(0);
  79.  exit(0);
  80. }
  81.  
  82. if ( rpm_exists(rpm:"  kernel-", release:"RHEL3") )
  83. {
  84.  set_kb_item(name:"CAN-2004-0136", value:TRUE);
  85.  set_kb_item(name:"CAN-2004-0619", value:TRUE);
  86.  set_kb_item(name:"CAN-2004-0685", value:TRUE);
  87.  set_kb_item(name:"CAN-2004-0812", value:TRUE);
  88.  set_kb_item(name:"CAN-2004-0883", value:TRUE);
  89.  set_kb_item(name:"CAN-2004-0949", value:TRUE);
  90.  set_kb_item(name:"CAN-2004-1068", value:TRUE);
  91.  set_kb_item(name:"CAN-2004-1070", value:TRUE);
  92.  set_kb_item(name:"CAN-2004-1071", value:TRUE);
  93.  set_kb_item(name:"CAN-2004-1072", value:TRUE);
  94.  set_kb_item(name:"CAN-2004-1073", value:TRUE);
  95. }
  96.  
  97. set_kb_item(name:"RHSA-2004-549", value:TRUE);
  98.